#!/bin/sh

name=cirros-0.3-x86_64
image=cirros-0.3.0-x86_64-disk.img

ssh openstack@172.16.0.1 "wget https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img && glance add -I admin -K openstack -T demo -N http://essex1:5000/v2.0 name=$name is_public=true container_format=bare disk_format=qcow2 < $image"
